package com.gzs.learn.springcloud.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.gzs.learn.springcloud.dto.UserDto;
import com.gzs.learn.springcloud.entity.User;

@Mapper
public interface UserMS {
    UserMS INSTANCE = Mappers.getMapper(UserMS.class);

    UserDto toDto(User user);

    User fromDto(UserDto userDTO);
}
